package com.alan.demo.model;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.experimental.Accessors;

import java.util.Date;

/**
 * <p>
 * 作答表
 * </p>
 *
 * @author lyl
 * @since 2022-08-08
 */
@Data(staticConstructor = "create")
@Accessors(chain = true)
@TableName("alan_qa_record")
public class QaRecord {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    private String traceId;

    private Long questionId;

    private String answerIndex;

    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    private String content;

    private String batchId;

}
